package com.jokerpan.project.service;

import com.jokerpan.project.commons.ActionResult;
import com.jokerpan.project.entity.Dictionary;

import java.util.Map;

/**
 * @author jokerpan
 */
public interface DictionaryService {

    Map<String, Object> queryList(Dictionary dictionary);

    Dictionary queryByCode(String code);

    Boolean add(Dictionary dictionary) throws Exception;

    ActionResult update(Dictionary dictionary);

    ActionResult deleteById(Integer id);
}
